const Router = require('koa-router');
const router = new Router();
const {db, QueryTypes} = require("../../models/db");
// 保存派单
router.post('/receipt/setReceiptDate', async ctx => {
    let user = ctx.user
    // let tenantId = user.tenantId;
    let model = await db.models['admin'].findOne({
        where: {
            id: user.id
        }
    })
    model.receiptDate = ctx.request.body.val
    await model.save()
    return ctx.suc('')
})

module.exports = router;
